<template>
    <div v-if="Object.keys(detailgoodsinfo).length !== 0" class="goods-info">
        <div class="info-desc">
            <div class="desc">{{detailgoodsinfo.desc}}</div>
        </div>
        <div class="info-key">{{detailgoodsinfo.detailImage[0].key}}</div>
        <div class="info-list">
            <img v-for="(item,index) in detailgoodsinfo.detailImage[0].list" :key="index" 
            :src="item" alt="">
        </div>
    </div>
</template>
<script>
export default {
   name:'DetailGoodsInfo',
    props: {
        detailgoodsinfo:{
            type:Object,
            defalut(){
                return {}
            }
        }
 },
}
</script>

<style scoped>
.goods-info {
    padding: 20px 0;
    border-bottom: 5px solid #f2f5f8;
    margin-bottom: 60px;
  }
.info-desc {
    padding: 0 15px;
  }
  .info-desc .desc {
    padding: 15px 10px;
    font-size: 14px;
    background-color:powderblue;
  }
  .info-key {
    margin: 10px 0 10px 15px;
    color: #333;
    font-size: 15px;
  }
    .info-list img {
    width: 100%;
  }
</style>